//
//  CBaseTableCell.h
//  GoldOperationClient
//
//  Created by yaxue wang on 16/8/1.
//  Copyright © 2016年 展鸿科技. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DataModel.h"
#import "NoDataView.h"
#import <TPKeyboardAvoiding/TPKeyboardAvoidingTableView.h>
typedef enum {
    CTableActionType_Default,
    CTableActionType_Push,
    CTableActionType_Refresh,
    CTableActionType_Both,
}CTableActionType;
@interface CBaseTable : TPKeyboardAvoidingTableView<UITableViewDataSource, UITableViewDelegate>
@property (nonatomic) CTableActionType tableActionType;
@property (nonatomic) BOOL needSection;
@property (nonatomic) BOOL isHidden;

@property (nonatomic, strong) NSMutableArray *mainData; // 主要数据
@property (nonatomic) BOOL showNoData;
@property (nonatomic, strong) NSString *showNoDataNotice;
@property (nonatomic, strong) DataModel *extData; // 附加数据
@property (nonatomic, strong) void(^CCellSelect)(id);
- (void) initView;
- (void) initData;
- (void) loadData;
- (void) refresh;
- (void) viewAppear;

- (void) registerCell:(Class) cellClass withModel:(Class)model;


@property (nonatomic) NSInteger perPageCount; // 每页条数
- (void) setDataWithUrl:(NSString *)url andParam:(NSDictionary *)dic;
@end
